<template>
  <div class="homePage">
    <h2>首页</h2>
    <el-row class="mb-4">
      <h2>按钮权限：</h2>
      <el-button v-permission="['admin']" type="primary">admin</el-button>
      <el-button v-permission="['jerry']" type="success">jerry</el-button>
      <el-button v-permission="['admin', 'jerry']" type="info">
        admin && jerry
      </el-button>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "HomePage",
};
</script>

<style scoped>
.homePage {
  padding: 24px;
}
</style>